package com.xbh.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xbh.management.model.ManDepartment;
import com.xbh.management.model.ManUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-30 14:26
 */
@Mapper
public interface DepartmentMapper extends BaseMapper<ManDepartment> {

    int deleteCustomerById(Long customerId);

    int deleteCustomerByIds(List<String> customerIdList);

    List<ManDepartment> selectCustomerByIds(List<String> customerIdlist);

    Page<ManUser> selectUserByDepartmentId(Page<ManUser> page,@Param("departmentIdList") List<String> departmentIdList);
}
